import request from '@/utils/request'

// 查询开票信息列表
export function listContractInvoiceInfo(query) {
  return request({
    url: '/agency/contractInvoiceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询开票信息详细
export function getContractInvoiceInfo(id) {
  return request({
    url: '/agency/contractInvoiceInfo/' + id,
    method: 'get'
  })
}

// 新增开票信息
export function addContractInvoiceInfo(data) {
  return request({
    url: '/agency/contractInvoiceInfo',
    method: 'post',
    data: data
  })
}

// 修改开票信息
export function updateContractInvoiceInfo(data) {
  return request({
    url: '/agency/contractInvoiceInfo',
    method: 'put',
    data: data
  })
}

// 删除开票信息
export function delContractInvoiceInfo(id) {
  return request({
    url: '/agency/contractInvoiceInfo/' + id,
    method: 'delete'
  })
}
